Skip to content

feat: entity 클래스 추가#10

Merged
choiseoji merged 19 commits intodevelopfrom
feat/9-entity
Jul 1, 2025
Merged

feat: entity 클래스 추가#10
choiseoji merged 19 commits intodevelopfrom
feat/9-entity

Conversation

@choiseoji
Copy link
Contributor

✨ 연관된 이슈

close #9


📝 작업 내용 (주요 변경 사항)

ERD에서 아래 부분들 수정했습니다!

  • 일정 테이블의 시간 필드 -> 시작 시간(start_time), 끝 시간(end_time)으로 분리
  • 일정테이블에 런닝 사전 인원(expected_participants), 런닝 인원(actual_participants) 필드 추가
  • 크루 테이블에 한달 누적 점수 추가 (그 랭킹에 표시할 KM) (monthly_score_total)
  • 가입 테이블에 가입 메시지 필드 삭제
  • 일정이 record key 가지고 있도록 수정 (원래는 record가 event_id 가지고 있었음)
  • 반복 일정 테이블에 반복 요일 필드 추가

💬 리뷰 요구사항

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ROLE을 NONE, MEMBER, LEADER, MANAGER로 설정했는데 괜찮은지 한번 봐주세요!!
NONE이 이제 막 가입한 사람들이 될거 같아요 (아직 크루 없는!)

@choiseoji choiseoji self-assigned this Jul 1, 2025
@choiseoji choiseoji added the ✨feat 기능 개발 시 label Jul 1, 2025
@choiseoji choiseoji linked an issue Jul 1, 2025 that may be closed by this pull request
7 tasks
@github-actions
Copy link

github-actions bot commented Jul 1, 2025

Test Coverage Report

Overall Project 41.16% -24.17% 🍏
Files changed 12.32%

File Coverage
Member.java 100% 🍏
Role.java 100% 🍏
AuthService.java 81.42% 🍏
JoinCrew.java 0%
Crew.java 0%
Notification.java 0%
CrewRecord.java 0%
JoinStatus.java 0%
MessageType.java 0%
Event.java 0%
JoinEvent.java 0%
PeriodicEvent.java 0%
WeekDay.java 0%
RepeatCycle.java 0%

Copy link
Contributor

@west-eastH west-eastH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~~

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

@EnableJpaAuditing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 이거 좋다~

Comment on lines +28 to +29
@Column(name = "target_id")
private Long targetId; // crew 가입 요청이라면 targetId에 joinCrew id 저장
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여긴 멤버 id랑 joinCrew id 둘 중 하나가 들어가는건가요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수락하면 joinCrew 에서 상태 바꿔줘야해서 joinCrew_id 생각했어요!!

@Getter
public enum MessageType {

BATTLE("대결"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저희 1대1 없어진거 아닌가요??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 피그마 보시면 배틀이랑 크루로 나누어져 있길래 이렇게 했어요!

@Getter
@Setter
@MappedSuperclass
@EntityListeners(AuditingEntityListener.class)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

잘하긴 한다~!

@choiseoji choiseoji merged commit 764dd7a into develop Jul 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨feat 기능 개발 시

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨feat : 엔티티 클래스

2 participants